<template>
  <div class="goodsdec-container">
    <h3>{{info.name}}</h3>
    <hr />
    <div class="content">{{info.text}}</div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      info: {} //图文数据
    };
  },
  created() {
    this.getGoodsDesc();
  },
  methods: {
    getGoodsDesc() {
      this.$http
        .get("https://www.apiopen.top/satinApi?type=1&page=1")
        .then(result => {
          if (result.body.code == 200) {
            this.info = result.body.data[0];
          }
        });
    }
  }
};
</script>
<style lang="less" scoped>
.goodsdec-container {
  h3 {
    font-size: 16px;
    color: #226aff;
    text-align: center;
    margin: 15px 0;
  }
  .content{
      padding: 10px;
  }
}
</style>
